import java.io.IOException;
import java.io.OutputStream;
import java.util.jar.JarOutputStream;
import java.util.zip.ZipEntry;
import edu.umd.cs.findbugs.annotations.SuppressWarnings;

/*Error AM_CREATES_EMPTY_ZIP_FILE_ENTRY - FindBugs
 * 
 * 
 * Opens and closes a jar file without writing anything to it
 * 
 */

@SuppressWarnings({"NP_LOAD_OF_KNOWN_NULL_VALUE","OS_OPEN_STREAM", "NP_NULL_PARAM_DEREF_NONVIRTUAL"})
public class AM_CREATES_EMPTY_JAR_FILE_ENTRY {
	
	@java.lang.SuppressWarnings("resource")
	public void throwError() throws IOException{
		OutputStream o = null;
		String s = null;
		ZipEntry ze = new ZipEntry(s);

		JarOutputStream output = null;
		
		try{
			output = new JarOutputStream(o);
		}
		finally{
			output.putNextEntry(ze);
			output.closeEntry();
		}
	}

}

